package com.youjiang.meeting.mapper;

import com.youjiang.meeting.po.Program;
import com.youjiang.meeting.po.ProgramExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProgramMapper {
    int countByExample(ProgramExample example);

    int deleteByExample(ProgramExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Program record);

    int insertSelective(Program record);

    List<Program> selectByExample(ProgramExample example);

    Program selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Program record, @Param("example") ProgramExample example);

    int updateByExample(@Param("record") Program record, @Param("example") ProgramExample example);

    int updateByPrimaryKeySelective(Program record);

    int updateByPrimaryKey(Program record);
    
    /**
     * 根据用户id和节目id删除节目
     * @param userid
     * @param id
     */
	void deleteByUserIdAndPrimaryKey(@Param("userid") Integer userid, @Param("id") Integer id);

}